package com.sc.nft.enums;

public enum UserAccoutTypeEnum {

    USER_TEL(1,"手机注册"),
    USER_EMAIL(2,"邮箱注册"),
    USER_LOGIN(3,"登录"),


    ;

    private Integer _code;
    private String _name;


    UserAccoutTypeEnum(Integer code, String name) {
        this._code = code;
        this._name = name;
    }

    public Integer getCode() {
        return _code;
    }

    public String getName() {
        return _name;
    }


    public static String getValue(Integer code) {
        UserAccoutTypeEnum[] values = values();
        for (UserAccoutTypeEnum v : values) {
            if (v.getCode().equals(code)) {
                return v.getName();
            }
        }
        return null;
    }
}
